<?php

$strScreenName = 'EnterSize';
$strQueryName = 'qryAddSize';
$strFormName = 'frmEnterSize';

     if ( (($_POST[intSizeID]) || ($_GET[intSizeID])) && (!$_POST[$strReprocessing])) {
             include (MODULE . "/action/qrySelectSize");
             if($_GET[intSizeID]){
             	$_POST[intSizeID] = $_GET[intSizeID];
             }
             $strTitle = "Update";
             $strButtonTitle = "update";
             $txtID = stripslashes($myrow["ID"]);
             $txtSize = stripslashes($myrow["Size"]);
         }else{
             $strTitle = "Enter";
             $strButtonTitle = "save";
             if($txtID){ $txtID = stripslashes(eregi_replace("\"", "&quot;", $_POST[txtID])); }
             if($txtSize){ $txtSize = stripslashes(eregi_replace("\"", "&quot;", $_POST[txtSize])); }
     }
     
if($strStyleSheet == TRUE){
	echo "<table class='Normal' border='0' align='left' width='450'>";
}
echo "
<tr>
     <td>
         <table  width='450' cellpadding='0' cellspacing='0' border='0' class='Normal' align='center'>
     <tr align='left'>
         <td align='left' colspan='2'>
             <H2>$strTitle Size</H2>
         </td>
     </tr>
";
// Upploaded = 0
echo (StartForm($strScreenName, "post", $strQueryName,array('intSizeID'=>$_POST[intSizeID],'strReprocessing'=>'True'),"","",$strFormName,"","return frmEnterSize_onsubmit()"));


echo "
     <tr>
         <td align='right' colspan='1'>
             <b>Product Size :&nbsp;</b>
         </td>
         <td align='left' colspan='1'>
             <input type=\"text\" name=\"txtSize\" value = \"$txtSize\" size= \"30\" maxlength=\"50\">
         </td>
     </tr>

     <tr>
         <td align='right' colspan='2'>
             <input type='image' src='./images/$strButtonTitle.gif' alt='$strButtonTitle'>
         </td>
     </tr>
         </table
     </form>
     </td>
 </tr>
";
	if($strStyleSheet == TRUE){
   		echo "</table>";
	}
     //$strListAll = "true";
       //include (MODULE . "/screen/ListSize");
?>
<script language="JavaScript">
<!--
function frmEnterSize_onsubmit() 
{


     if(document.frmEnterSize.txtSize.value == "") {
         alert("Please enter Product Size");
         document.frmEnterSize.txtSize.focus();
         document.frmEnterSize.txtSize.select();
         return(false);
     }


}
// -->
</script>
